#coding:utf-8
'''
Created on 2015��3��13��

@author: guowu
'''

from PyQt4.QtGui import *
from PyQt4.QtCore import *
import sys
class DrawPie(QWidget):
    def __init__(self,parent=None):
        super(DrawPie,self).__init__(parent)
        #self.setEnabled(True)
        #self.setFixedSize(400,400)
        #self.button = QPushButton(self)
        
    def paintEvent(self,event):
        print "----"
        painter = QPainter(self)
        painter.setPen(Qt.NoPen)
        painter.setBrush(QBrush(Qt.blue))
        painter.translate(100,100)
        painter.drawPie(QRect(0, 0, 300, 300), 0, 360*15)
        #painter.rotate(0.1)
        
        
        
if __name__=='__main__':

    app = QApplication(sys.argv)
    window = DrawPie()
    window.show()
    app.exec_()

        
        
    
    
        